static const uint16_t sym_lut[] = {
[KS_BackSpace] = 8,
[KS_Tab] = 9,
[KS_Clear] = 12,
[KS_Return] = 13,
[KS_Pause] = 19,
[KS_Escape] = 27,
[KS_space] = 32,
[KS_exclam] = 33,
[KS_quotedbl] = 34,
[KS_numbersign] = 35,
[KS_dollar] = 36,
[KS_ampersand] = 38,
/* no match for KS_percent, KS_QUOTE */
[KS_parenleft] = 40,
[KS_parenright] = 41,
[KS_asterisk] = 42,
[KS_plus] = 43,
[KS_comma] = 44,
[KS_minus] = 45,
[KS_period] = 46,
[KS_slash] = 47,
[KS_0] = 48,
[KS_1] = 49,
[KS_2] = 50,
[KS_3] = 51,
[KS_4] = 52,
[KS_5] = 53,
[KS_6] = 54,
[KS_7] = 55,
[KS_8] = 56,
[KS_9] = 57,
[KS_colon] = 58,
[KS_semicolon] = 59,
[KS_less] = 60,
[KS_equal] = 61,
[KS_greater] = 62,
[KS_question] = 63,
[KS_at] = 64,
[KS_bracketleft] = 91,
[KS_backslash] = 92,
[KS_bracketright] = 93,
[KS_asciicircum] = 94,
[KS_underscore] = 95,
[KS_grave] = 96,
[KS_a] = 97,
[KS_b] = 98,
[KS_c] = 99,
[KS_d] = 100,
[KS_e] = 101,
[KS_f] = 102,
[KS_g] = 103,
[KS_h] = 104,
[KS_i] = 105,
[KS_j] = 106,
[KS_k] = 107,
[KS_l] = 108,
[KS_m] = 109,
[KS_n] = 110,
[KS_o] = 111,
[KS_p] = 112,
[KS_q] = 113,
[KS_r] = 114,
[KS_s] = 115,
[KS_t] = 116,
[KS_u] = 117,
[KS_v] = 118,
[KS_w] = 119,
[KS_x] = 120,
[KS_y] = 121,
[KS_z] = 122,
[KS_Delete] = 8,
/* 160 .. 255, generic 'world' */
[KS_KP_0] = 256,
[KS_KP_1] = 257,
[KS_KP_2] = 258,
[KS_KP_3] = 259,
[KS_KP_4] = 260,
[KS_KP_5] = 261,
[KS_KP_6] = 262,
[KS_KP_7] = 263,
[KS_KP_8] = 264,
[KS_KP_9] = 265,
[KS_KP_Decimal] = 266,
[KS_KP_Divide] = 267,
[KS_KP_Multiply] = 268,
[KS_KP_Subtract] = 269,
[KS_KP_Add] = 270,
[KS_KP_Enter] = 271,
[KS_KP_Equal] = 272,
[KS_Up] = 273,
[KS_Down] = 274,
[KS_Right] = 275,
[KS_Left] = 276,
[KS_Insert] = 277,
[KS_Home] = 278,
[KS_End] = 279,
/*
[PAGEUP] = 280,
[PAGEDOWN] = 281,
*/
[KS_f1] = 282,
[KS_f2] = 283,
[KS_f3] = 284,
[KS_f4] = 285,
[KS_f5] = 286,
[KS_f6] = 287,
[KS_f7] = 288,
[KS_f8] = 289,
[KS_f9] = 290,
[KS_f10] = 291,
[KS_f11] = 292,
[KS_f12] = 293,
[KS_f13] = 294,
[KS_f14] = 295,
[KS_f15] = 296,
[KS_Num_Lock] = 300,
[KS_Caps_Lock] = 301,
[KS_Hold_Screen] = 302,
[KS_Shift_R] = 303,
[KS_Shift_L] = 304,
[KS_Control_R] = 305,
[KS_Control_L] = 306,
[KS_Alt_R] = 307,
[KS_Alt_L] = 308,
[KS_Meta_R] = 309,
[KS_Meta_L] = 310,
/*
 [LSUPER] = 311,
 [RSUPER] = 312,
 [COMPOSE] = 314,
 [KS_SYSREQ] = 317,
 [BREAK] = 318,
 [EURO] = 321,
 [KS_Power] = 320,
*/
 [KS_Mode_switch] = 313,
 [KS_Help] = 315,
 [KS_Print_Screen] = 316,
 [KS_Menu] = 319,
 [KS_Undo] = 322
 };
